﻿Imports System.Data
Imports System.Data.OleDb
Imports DAO
Imports DTO

Public Class LoaiVeBus     Shared dao As New LoaiVeDao
    Public Shared Function LayDanhSachLoaiVe() As DataTable
        Return dao.LayDanhSachLoaiVe()
    End Function

    Public Shared Function LayDanhSachLoaiVeTheoMaTuyen(ByVal maTuyen As Long) As DataTable
        Return dao.LayDanhSachLoaiVeTheoMaTuyen(maTuyen)
    End Function

    Public Shared Function ThemLoaiVe(ByVal loaive As LoaiVeDto) As Integer
        Return dao.ThemLoaiVe(loaive)
    End Function

    Public Shared Function CapNhatLoaiVe(ByVal loaive As LoaiVeDto) As Integer
        Return dao.CapNhatLoaiVe(loaive)
    End Function

    Public Shared Function XoaLoaiVe(ByVal maCanXoa As Long) As Integer
        Return dao.XoaLoaiVe(maCanXoa)
    End Function


End Class
